package com.zzyl.mapper;


import com.zzyl.dto.ResourceDto;
import com.zzyl.entity.Dept;
import com.zzyl.entity.Resource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 恭喜发财
* @description 针对表【sys_resource(权限表)】的数据库操作Mapper
* @createDate 2024-05-17 11:36:33
* @Entity com.zzyl.entity1.Resource
*/
@Mapper
public interface ResourceMapper {

    List<Resource> selectList(ResourceDto resourceDto);

    void insertRe(Resource re);

    Resource selectParentResource(String parentResourceNo);


    Resource selectByDeptNo(@Param("resourceNo") String parentresourceNo);

    void updateResource(Resource resource);

    void updateByNo(@Param("resourceNo")String resourceNo,  @Param("dataState")String dataState);


    void updateByParentNo(@Param("resourceNo")String processString, @Param("dataState")String dataState);


    List<Resource> selectResourceList(Long userId);
}




